
import { Button } from 'antd';
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import usePublish from '../../../components/publish-manage/usePublish'

function Sunset() {
    const {dataSource,handleDelete}= usePublish(3)
    return (
        <div>
            <NewsPublish data={dataSource} button={(id)=><Button danger onClick={()=>handleDelete(id)}>删除</Button>}></NewsPublish>
        </div>
    )
}

export default Sunset
